<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('审核分销商信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <div th:if="${jtDistributor == null}" style="text-align: center;">
            <h1>[[#{noApplyForTips}]]</h1>
        </div>
        <form class="form-horizontal m" id="form-distributor-edit" th:object="${jtDistributor}" th:if="${jtDistributor != null}">
            <input name="distributorId" th:field="*{distributorId}" type="hidden">
            <div class="row">
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{distributorName}]]：</label>
                    <div class="col-sm-8">
                        <input th:value="*{distributorName}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{contact}]]：</label>
                    <div class="col-sm-8">
                        <input th:value="*{contact}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{contactNumber}]]：</label>
                    <div class="col-sm-8">
                        <input th:value="*{countryCode}" class="form-control" type="text" readonly>-
                        <input th:value="*{phoneNumber}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{email}]]：</label>
                    <div class="col-sm-8">
                        <input th:value="*{email}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label is-required">[[#{companyName}]]/[[#{fullName}]]：</label>
                    <div class="col-sm-8">
                        <input th:value="*{licenseName}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{legalPerson}]]：</label>
                    <div class="col-sm-8">
                        <input th:value="*{corporation}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{idNo}]]：</label>
                    <div class="col-sm-8">
                        <input th:value="*{licenseNo}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{idPhoto}]]1：</label>
                    <div class="col-sm-8">
                        <img th:src="*{licenseImage1Url}" width="200" />
                    </div>
                </div>
            </div>
            <div class="col-xs-6" th:if="*{licenseImage2Url != null}">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{idPhoto}]]2：</label>
                    <div class="col-sm-8">
                        <img th:src="*{licenseImage2Url}" width="200"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{description}]]：</label>
                    <div class="col-sm-8">
                        <textarea class="form-control" rows="3">[[*{description}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label">[[#{remark}]]：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                    </div>
                </div>
            </div>
            </div>
            <h4 class="form-header h4">[[#{reviewInformation}]]</h4>
            <div class="row">
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">[[#{auditStatus}]]：</label>
                        <div class="col-sm-8">
                            <div class="radio-box" th:each="dict : ${@dict.getType('jt_audit_status')}">
                                <input type="radio" th:id="${'auditStatus_' + dict.dictCode}" name="auditStatus" th:value="${dict.dictValue}" th:field="*{auditStatus}">
                                <label th:for="${'auditStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">[[#{reasonForReview}]]：</label>
                        <div class="col-sm-8">
                            <textarea name="auditReason" class="form-control" readonly>[[*{auditReason}]]</textarea>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">[[#{commissionRate}]]：</label>
                        <div class="col-sm-8">
                            <input name="commissionRate" th:field="*{commissionRate}" class="form-control" type="number" readonly>

                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">[[#{currency}]]：</label>
                        <div class="col-sm-8">
                            <input name="currency" th:field="*{currency}" class="form-control" type="text" readonly>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
</body>
</html>